package malus.shaofeng.com.beiwomusic.model;

import com.lidroid.xutils.db.annotation.Column;
import com.lidroid.xutils.db.annotation.Id;
import com.lidroid.xutils.db.annotation.NoAutoIncrement;
import com.lidroid.xutils.db.annotation.Table;

import org.json.JSONObject;

import java.io.Serializable;

/**
 * Created by aaa on 15-3-10.
 */
@Table(name = "newStoryMusicLyric")
public class NewStoryMusicLyric implements Serializable{
            @Id(column = "music_id")
            @NoAutoIncrement
            private long music_id;// 4754,
            @Column(column = "lyric_ext")
            private String lyric_ext;// "nrc",
            @Column(column = "lyric_url")
            private String lyric_url;// "http://cdn.kxai.cn/res/qms/nrc/fa/69/fa694bed653742479e7d803d763918d2.nrc"

    public String getLyric_url() {
        return lyric_url;
    }

    public void setLyric_url(String lyric_url) {
        this.lyric_url = lyric_url;
    }

    public String getLyric_ext() {
        return lyric_ext;
    }

    public void setLyric_ext(String lyric_ext) {
        this.lyric_ext = lyric_ext;
    }

    public long getMusic_id() {
        return music_id;
    }

    public void setMusic_id(long music_id) {
        this.music_id = music_id;
    }

    public void parseJSON(JSONObject json){
        if (json!=null){
                    music_id=json.optLong("music_id");
                    lyric_ext=json.optString("lyric_ext");
                    lyric_url=json.optString("lyric_url");
        }

    }

}
